package com.sumainfor.wx.tenant.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcMktFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * <p>
 *  租赁顾问评价
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-05-27 17:50
 **/
@Controller
@RequestMapping("/tcmktWorderEva")
public class TcmktWorderEvaController {

    @Autowired
    ZpcMktFeign zpcMktFeign;

    /**
    * <p>
    * 租赁顾问评价
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/AddWorderEva")
    public JsonResult AddWorderEva(@RequestBody Map<String,Object> params){
        return zpcMktFeign.AddWorderEva(params);
    }

    /**
    * <p>
    * 查询租赁顾问评价分类
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @GetMapping("/getWordEvaTmp")
    public JsonResult getWordEvaTmp(){
        return zpcMktFeign.getWordEvaTmp();
   }

    /**
    * <p>
    * 判断是否评价
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getWorderEvaCount")
    public JsonResult getWorderEvaCount(@RequestBody Map<String,Object> params){
        return zpcMktFeign.getWorderEvaCount(params);
    }
}
